Scala を Emacs で開發する
metals-emacs を使ふ
sbt
bloop を御守りせねばならぬ
每度
code:sh
set -eux
shellcheck "$0"
PROJECT="〜"
# emacsserver stop || true
# rm -frv ~/Library/Caches/Coursier/v1 ~/.ivy2/cache ~/.m2 ~/.sbt
# rm -frv target project/target project/project/target
# rm -frv .bloop .metals
sbt compile bloopInstall
bloop clean "$PROJECT"
bloop compile "$PROJECT" || true
# emacsserver start
emacsserver stop の中身は emacsclient -e '(kill-emacs)'
emacsserver start の中身はほぼ emacs --daemon
debugger も設定したい
Scala Debugger
dap-mode